//
//  SolarSeekStore.h
//  SolarSimple
//
//  Created by Marcelo Alves on 21/10/08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "Ticket.h"
#import "Result.h"
#import "User.h"
#import "SidebarItem.h"
#import "Transfer.h"

enum SidebarType { networkType = 1, searchType, talkType, shareType, folderType, wishType, friendType, downloadMenuType, uploadMenuType, friendMenuType };

@interface SolarSeekStore : NSObject {
  NSDate *lastSave;
  NSMutableDictionary *ticketCache;
}


@property(readonly) NSManagedObjectContext *managedObjectContext;
-(NSManagedObject *)findTicketWithTicketNumber:(UInt32) ticket;

-(NSManagedObject *) new:(NSString *)entity;
-(NSManagedObject *) find:(NSString *)entity withPredicate:(NSPredicate *)predicate;

-(void) save;

@end

